package config

type ConfigParams struct {
	ProjectName string `yaml:"project_name" mapstructure:"project_name"`
	Path        string `yaml:"path" mapstructure:"path"`
	HttpPort    string `yaml:"http_port" mapstructure:"http_port"`
	GrpcPort    string `yaml:"grpc_port" mapstructure:"grpc_port"`
}

var ConfigData ConfigParams

func ReadConfig(projectName, path, httpPort, grpcPort string) {
	ConfigData = ConfigParams{
		ProjectName: projectName,
		Path:        path,
		HttpPort:    httpPort,
		GrpcPort:    grpcPort,
	}
}
